package com.xingchen.feima.star.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDate;
import java.util.Date;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 组件表
 * </p>
 *
 * @author yangxc
 * @since 2025-02-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("star_component")
@ApiModel(value="Component对象", description="组件表")
public class Component implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "组件编号")
    private String componentNumber;

    @ApiModelProperty(value = "燃耗")
    private Double burnup;

    @ApiModelProperty(value = "初始铀富集度")
    private Double initialUraniumEnrichment;

    @ApiModelProperty(value = "入池时间")
    private LocalDate timeToEnterThePool;

    @ApiModelProperty(value = "所属机组的id")
    private Long unitId;

    @ApiModelProperty(value = "低燃耗还是高燃耗")
    private Integer lowOrHigh;

    @ApiModelProperty(value = "放置的年数")
    private Double yearsOfPlacement;

    @ApiModelProperty(value = "放置的天数")
    private Integer daysOfPlacement;

    @ApiModelProperty(value = "可外运的最早日期")
    private LocalDate theEarliestDateOfOutwardTransport;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;


}
